package logic.p7_commonClass;

import org.junit.Test;

import java.util.Arrays;
import java.util.Comparator;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-13 10:51
 **/
public class ArraysClass {

    @Test
    public void test(){
        //Arrays.toString(new int[]{});
        Integer[] a = {2,1,3};
        Arrays.sort(a,(o1,o2)->o2-o1);
        System.out.println(Arrays.toString(a));
        Arrays.fill(a,0x3f);
        System.out.println(Arrays.toString(a));

    }
}

